package com.leyou.trade.web;

import com.leyou.trade.entity.OrderLogistics;
import com.leyou.trade.service.OrderLogisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * (OrderLogistics)表控制层
 *
 * @author makejava
 * @since 2020-08-17 14:53:57
 */
@RestController
@RequestMapping("orderLogistics")
public class OrderLogisticsController {
    /**
     * 服务对象
     */
    @Autowired
    private OrderLogisticsService orderLogisticsService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("{id}")
    public OrderLogistics selectOne(@PathVariable("id") Long id) {
        return this.orderLogisticsService.getById(id);
    }

}